package model;

import java.io.Serializable;
import java.util.ArrayList;


public class documentTable implements Serializable {

    /*大标题*/
    private twoSideString name;

    /*大标题超链接*/
    private String href;

    /*外部的内容*/
    private ArrayList<twoSideString> list;

    /*单元集合*/
    private ArrayList<unit> units;

    /*内部单元类*/
    static class unit{

        /*单元的标题*/
        twoSideString tag;

        /*单元标题超链接*/
        String href;

        /*单元的内容*/
        ArrayList<twoSideString> contents;

        public unit(twoSideString tag, ArrayList<twoSideString> contents) {
            this.tag = tag;
            this.contents = contents;
        }

        public unit() {
        }

        public twoSideString getTag() {
            return tag;
        }

        public void setTag(twoSideString tag) {
            this.tag = tag;
        }

        public ArrayList<twoSideString> getContents() {
            return contents;
        }

        public void setContents(ArrayList<twoSideString> contents) {
            this.contents = contents;
        }

        public String getHref() {
            return href;
        }

        public void setHref(String href) {
            this.href = href;
        }

        @Override
        public String toString() {
            return "unit{" +
                    "tag=" + tag +
                    ", contents=" + contents +
                    '}';
        }
    }

    public documentTable() {
    }

    public twoSideString getName() {
        return name;
    }

    public void setName(twoSideString name) {
        this.name = name;
    }

    public ArrayList<twoSideString> getList() {
        return list;
    }

    public void setList(ArrayList<twoSideString> list) {
        this.list = list;
    }

    public ArrayList<unit> getUnits() {
        return units;
    }

    public void setUnits(ArrayList<unit> units) {
        this.units = units;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    @Override
    public String toString() {
        return "documentTable{" +
                "name=" + name +
                ", list=" + list +
                ", units=" + units +
                '}';
    }
}
